cmake_minimum_required(VERSION 3.19)
project(transmiddle)

set(CMAKE_CXX_STANDARD 17)

include_directories(
        ${CMAKE_CURRENT_SOURCE_DIR}/include/thirdparty
        ${CMAKE_CURRENT_SOURCE_DIR}/include
        )

#file(GLOB_RECURSE HEADE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/middle/**/*.h")

file(GLOB SOURCE_FILES
        ${CMAKE_CURRENT_SOURCE_DIR}/src/log/*.cpp)

add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})

file(GLOB TEST_FILES
        ./main.cpp)

add_executable(test ${TEST_FILES})

target_link_libraries(test
        transmiddle
        )